package org.dbrd.detector.tfidf;

public class DefaultIDFCalculator implements IIDFCalculator {

//	private static final double LG_2 = Math.log10(2);
	
	@Override
	public double calculate(int documentCount, int frequency) {
//		return Math.log10(1.0 * documentCount / frequency) / LG_2;
		return Math.log(1.0 * documentCount / frequency);
	}

}
